from openai import OpenAI

client = OpenAI(
    api_key="sk-7b4cb6aa21fa442f90bbe851265dd008",
    base_url="https://api.deepseek.com"
)

completion = client.chat.completions.create(
    model="deepseek-chat",  # 或 "general"
    messages=[{"role": "user", "content": "说一个程序员才懂的笑话"}]
)

print(completion.choices[0].message.content)
